package com.bobo.services;

import java.util.List;

import com.bobo.vo.Page;
import com.bobo.vo.Product;
import com.bobo.vo.Sale;
import com.bobo.vo.User;
import com.bobo.vo.extension.CityProductProfit;
import com.bobo.vo.extension.Extension;
import com.bobo.vo.extension.ProductListExtension;
import com.bobo.vo.extension.ProductSaleExtension;

public interface HandleService {
	public boolean inserted(User user);
	public boolean insertUserBatch(List<User> users);
	
	public boolean inserteProduct(Product product);
	public boolean insertProductBatch(List<Product> products);
	
	public boolean inserteSale(Sale sale);
	public boolean insertSaleBatch(List<Sale> sales);
	//查找所有用户
	public List<User> findUserAll();
	//找出某位用户购买商品清单
	public List<Extension> findUserBuyList(int id);
	//商品列表
	public List<ProductSaleExtension> findProductList();
	//商品购买详情
	public List<Extension> findProductBuyDetail(int productId);
	//城市列表
	public List<User> findCityList();
	//按城市汇总商品销售利润top10
	public List<CityProductProfit> findCityProductProfitList(String address);
	/**
	 * 
	 * <p>Title: findCityProductProfitList2</p>
	 * <p>Description: </p>
	 * @author   HuaJiangbo
	 * @param page
	 * @return List<ProductListExtension>
	 */
	public List<ProductListExtension> findCityProductProfitList2(int page);
	/**
	 * 
	 * <p>Title: findProductNum</p>
	 * <p>Description: 查找共有多少件商品</p>
	 * @author   HuaJiangbo
	 * @return Integer
	 */
	public Integer findProductNum_service();
	/**
	 * 
	 * <p>Title: findCityProductProfitListLastMonth</p>
	 * <p>Description: 按城市汇总商品最新一个月前一个月销售利润top10</p>
	 * @author   HuaJiangbo
	 * @param address
	 * @return List<CityProductProfit>
	 */
	public List<CityProductProfit> findCityProductProfitListLastMonthService(String address);
}
